﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class admin_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        string name = txtLoginName.Text.Trim();
        string pwd = txtLoginPwd.Text.Trim();

        if (name == "admin" && pwd == "admin")
        {
            Session["manager"] = new KKCai.App.Model.UserInfo();
            Response.Redirect("frame.aspx");
        }
        else
        {
            //Alert("用户名或密码错误!");
        }
    }
}
